package cn.web.web_module.controller;

import cn.itcast.util.ResponseEntity;
import cn.web.web_module.entity.OrderItemInfoOV;
import cn.web.web_module.service.GetRecyclableDeductService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: 张松
 * @Description:
 * @Date: Created in 17:22 2021/4/8
 * @Modified By:
 */

@RestController
@RequestMapping("getrecyclablededuct")
public class GetRecyclableDeductController {

    @Resource
    private GetRecyclableDeductService getRecyclableDeductService;

    @PostMapping("getRecyclableDeduct")
    public ResponseEntity getRecyclableDeduct(@RequestBody Map<String,String> orderNumber){
        List<OrderItemInfoOV> getRecyclableDeduct = getRecyclableDeductService.getGetRecyclableDeduct(orderNumber);
        return new ResponseEntity(getRecyclableDeduct);
    }


}
